/**
 * This file is part of 1genia trampoline
 * Copyright (C) 2007 1genia (contact@1genia.com)
 *
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; version 3 of the License. 
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details. 
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; see the file COPYING.TXT.  If not,
 * write to the Free Software Foundation, Inc., 51 Franklin Street,
 * Fifth Floor, Boston, MA 02110-1301, USA. 
 **/
package com.genia.toolbox.spring.provider.message.bean.impl;

import com.genia.toolbox.spring.provider.message.bean.MessageProvider;

/**
 * Simple implementation of <code>MessageProvider</code> that is configured
 * with Spring.
 */
public class SimpleMessageProvider
    implements MessageProvider
{

  /**
   * the basename of the <code>ResourceBundle</code> to add.
   */
  private String[] bundledFiles;



  /**
   * getter for the bundledFiles property.
   * 
   * @return the bundledFiles
   */
  public String[] getBundledFiles()
  {
    return bundledFiles;
  }



  /**
   * setter for the bundledFiles property.
   * 
   * @param bundledFiles
   *          the bundledFiles to set
   */
  public void setBundledFiles(final String[] bundledFiles)
  {
    this.bundledFiles = bundledFiles;
  }



  /**
   * setter for the bundledFiles property. This method is used when there is
   * only on file to add.
   * 
   * @param bundledFile
   *          the bundledFile to set
   */
  public void setBundledFile(final String bundledFile)
  {
    setBundledFiles(new String[] { bundledFile });
  }
}
